package com.itmuch.cloud.study.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lrf
 */
@RestController
public class ConfigClientController {

	@Value("${profile}")
	private String profile;

	@Value("${label}")
	private String label;

	@GetMapping("/profile")
	public String hello() {
		System.out.println("profile = " + profile);
		System.out.println("label = " + label);
		return this.profile;
	}
}
